package com.ytb.controller;
import com.ytb.pojo.login;
import com.ytb.service.Impl.userServiceImpl;
import com.ytb.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class IUserController {
    @Autowired
    private userServiceImpl userService;
    //getSession
    @PostMapping("/login")
    public Result getSession(@RequestBody login l)
    {
        System.out.println(l);
        return userService.doWxLogin(l);
    }

}
